package com.gxa.modules.model.entity.hospital;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 健康百科文章表
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 11:20:15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_health")
@ApiModel(value = "Health对象", description = "健康百科文章表")
public class Health implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("作者")
    @TableField("author")
    private String author;

    @ApiModelProperty("状态（0-正常，1-废弃")
    @TableField("state")
    @JsonIgnore
    private Integer state;

    @ApiModelProperty("创建时间")
    @TableField("creation_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date creationTime;

    @ApiModelProperty("逻辑删除（0-正常，1-删除")
    @TableField("is_delete")
    @TableLogic
    @JsonIgnore
    private Integer isDelete;

    @ApiModelProperty("图片地址")
    @TableField("Image")
    private String image;

    @ApiModelProperty("文章内容")
    @TableField("content")
    private String content;


}
